package edu.tjut.tjutcommunity.service;

import edu.tjut.tjutcommunity.exception.PicNotFoundException;
import edu.tjut.tjutcommunity.entity.Floor;
import com.baomidou.mybatisplus.extension.service.IService;
import edu.tjut.tjutcommunity.entity.PageResult;
import edu.tjut.tjutcommunity.entity.User;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yhh
 * @since 2022-04-17
 */
public interface FloorService extends IService<Floor> {

//    boolean addFloor(Floor floor, User user, Integer ordinal) throws ClassNotFoundException, InvocationTargetException, PicNotFoundException, IllegalAccessException, NoSuchMethodException;
    Floor addFloor(Floor floor, User user);
    Integer getPidByFid(Integer fid);
    PageResult<Floor> getFloor(Integer pid, Integer pageNo);
    Boolean commentsInc(Integer fid);
    Floor getUidAndUsernameByFid(Integer fid);
    boolean likeInc(Integer fid, User user);

    boolean delFloor(Integer fid, User user);

    List<Integer> getMyFloors(Integer uid);
}
